import { ecs } from "./core/ecs/ECS";
import { CommonUtil } from "./module/common/CommonUtil";
import { dev } from "./module/config/Config";
import { GateServer } from "./server/gate/GateServer";
import { GateServerRootSystem } from "./server/gate/sys/GateServerRootSystem";

/** 网关服务器对象 */
export var gs: GateServer = null!

function main() {
    dev();

    CommonUtil.init(new GateServerRootSystem());

    gs = ecs.getEntity<GateServer>(GateServer);
    gs.start()
}

main();